package com.bjpowernode.mapper;

import com.bjpowernode.annotation.DataScope;
import com.bjpowernode.entity.TTran;
import com.bjpowernode.entity.query.BaseQuery;
import com.bjpowernode.entity.vo.SummaryDataVO;

import java.util.Date;
import java.util.List;

public interface TTranMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(TTran record);

    int insertSelective(TTran record);

    TTran selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(TTran record);

    int updateByPrimaryKey(TTran record);

    @DataScope(tableAlias = "tcl", columnName = "owner_id")
    List<TTran> getTransByPage(BaseQuery baseQuery);

    TTran getTranById(Integer id);

    int updateStage(Integer tranId, Integer stage, Date editTime, Integer editBy);

    SummaryDataVO getSummaryData();

    Integer getTranCountByStage(Integer stage);
}